<?php
/**
 * Created by PhpStorm.
 * User: 氓羽
 * Date: 2018-4-20
 * Time: 12:49
 */

class Memcache{
    public function set($k, $t){

    }
    public function get($k){

    }
    public function delete($k){

    }
}
class Readis{
    public function set($k, $t){

    }
    public function get($k){

    }
    public function delete($k){

    }
}

class Cache{
    public static function factory(){
        return new Readis();
    }
}

$cache01 = Cache::factory();
$cache01->set(1,2);
